// 轮播图图片
$.ajax({
	type: 'get',
	url: '/api/swipers',
	success: function(res) {
		if (res.status == 1) {
			console.log('失败');
		} else {
			let theHTML = template('template-swiper', res)
			$('#kr_carousel>ul').html(theHTML);
		}
	}
})

getLink();

//先有标签 后有轮播图类名变化
layui.use('carousel', function() {
	// 轮播模块
	let carousel = layui.carousel;
	// 轮播交互
	carousel.render({
		elem: '#kr_carousel',
		width: 720,
		height: 300,
		interval: 3000
	});
});
